package com.tos.uc.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 下单的商品
 * 
 * 表名：tos_goods_order_goods
 * 
 * @author zj
 *
 */
@SuppressWarnings("serial")
public class TosGoodsOrderGoods implements Serializable {
	private Integer id;//
	private Integer orderId;// 订单ID
	private Integer goodsId;// 商品id
	private String goodsName;// 商品名称
	private String goodsSn;// 商品编码
	private Integer num;// 购买数量
	private BigDecimal price;// 价格
	private Integer source;// 来源 0系统 否则为服务商id
	private Integer activeId;// 活动id
	private BigDecimal totalAmount;// 商品总价
	private Date createTime;//
	private Integer deleted;//
	private Date updateTime;//
	private Integer version;//
	private String spec;// 规格值 24_43_33
	private String specName;// 规格值 内存:16G 颜色:黑色

	

	public TosGoodsOrderGoods() {
	}

	/**
	 *
	 * @param id
	 *            --
	 */
	public TosGoodsOrderGoods(Integer id) {
		this.id = id;
	}

	/***/
	public Integer getId() {
		return id;
	}

	/***/
	public void setId(Integer id) {
		this.id = id;
	}

	/** 订单ID */
	public Integer getOrderId() {
		return orderId;
	}

	/** 订单ID */
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	/** 商品id */
	public Integer getGoodsId() {
		return goodsId;
	}

	/** 商品id */
	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	/** 商品名称 */
	public String getGoodsName() {
		return goodsName;
	}

	/** 商品名称 */
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	/** 商品编码 */
	public String getGoodsSn() {
		return goodsSn;
	}

	/** 商品编码 */
	public void setGoodsSn(String goodsSn) {
		this.goodsSn = goodsSn;
	}

	/** 购买数量 */
	public Integer getNum() {
		return num;
	}

	/** 购买数量 */
	public void setNum(Integer num) {
		this.num = num;
	}

	/** 价格 */
	public BigDecimal getPrice() {
		return price;
	}

	/** 价格 */
	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	/** 来源 0系统 否则为服务商id */
	public Integer getSource() {
		return source;
	}

	/** 来源 0系统 否则为服务商id */
	public void setSource(Integer source) {
		this.source = source;
	}

	/** 活动id */
	public Integer getActiveId() {
		return activeId;
	}

	/** 活动id */
	public void setActiveId(Integer activeId) {
		this.activeId = activeId;
	}

	/** 商品总价 */
	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	/** 商品总价 */
	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	/***/
	public Date getCreateTime() {
		return createTime;
	}

	/***/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/***/
	public Integer getDeleted() {
		return deleted;
	}

	/***/
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	/***/
	public Date getUpdateTime() {
		return updateTime;
	}

	/***/
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/***/
	public Integer getVersion() {
		return version;
	}

	/***/
	public void setVersion(Integer version) {
		this.version = version;
	}

	/** 规格值 24_43_33 */
	public String getSpec() {
		return spec;
	}

	/** 规格值 24_43_33 */
	public void setSpec(String spec) {
		this.spec = spec;
	}

	/** 规格值 内存:16G 颜色:黑色 */
	public String getSpecName() {
		return specName;
	}

	/** 规格值 内存:16G 颜色:黑色 */
	public void setSpecName(String specName) {
		this.specName = specName;
	}

	@Override
	public String toString() {
		return "TosGoodsOrderGoods [ id=" + id + ", orderId=" + orderId
				+ ", goodsId=" + goodsId + ", goodsName=" + goodsName
				+ ", goodsSn=" + goodsSn + ", num=" + num + ", price=" + price
				+ ", source=" + source + ", activeId=" + activeId
				+ ", totalAmount=" + totalAmount + ", createTime=" + createTime
				+ ", deleted=" + deleted + ", updateTime=" + updateTime
				+ ", version=" + version + ", spec=" + spec + ", specName="
				+ specName + "]";
	}
}
